package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.PmsSpu;
import cn.tedu.csmall.product.pojo.vo.SpuStandardVo;

import java.util.List;

public interface SpuMapper {
    int insert(PmsSpu pmsAttribute);

    int insertBatch(List<PmsSpu> pmsAttributes);

    int deleteById(long l);

    int deleteByIds(Long[] l);

    int update(PmsSpu pmsAttribute);

    int count();

    SpuStandardVo selectById(Long id);

    List<SpuStandardVo> list();

    int countByAlbum(Long album_id);

    int countByBrand(Long brandId);

    int countByCategory(Long categoryId);

    int countByAttributeTemplate(Long template_id);
}
